package br.inf.solutions.apresentacoes.ssp.control;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import br.com.vexillum.util.Return;
import br.inf.solutions.apresentacoes.ssp.model.hierarchy.ModelName;

@Service
@Scope("prototype")
public class ModelNameController extends BaseController<ModelName> {

	private final Integer FUNCTIONID = 4;
	
	public ModelNameController() {
		super(ModelName.class);
	}
	
	public Return getFunctionsModelName(){
		String sql = "FROM " + getClassEntity().getSimpleName() + " WHERE type = " + FUNCTIONID;
		getData().put("sql", sql);
		return searchByHQL();
	}

}
